//
// Created by fanghr on 18-3-26.
//

#ifndef ACCLSEN_SENSOR_H
#define ACCLSEN_SENSOR_H

#include "acclen_data.h"

namespace acclsen_driver {
    struct acclsen_t;

    acclsen_t *acclsen_init(std::string path = "/dev/ttyACM0", int baud = 9600);

    int acclsen_destory(acclsen_t *obj);

    int acclsen_run(acclsen_t *);

    int acclsen_stop(acclsen_t *);

    acclsen_recv::time get_time(acclsen_t *);

    acclsen_recv::acc get_acc(acclsen_t *);

    acclsen_recv::angsp get_angsp(acclsen_t *);

    acclsen_recv::ang get_ang(acclsen_t *);

    acclsen_recv::magf get_magf(acclsen_t *);

    acclsen_recv::port get_port(acclsen_t *);

    acclsen_recv::prehei get_prehei(acclsen_t *);

    acclsen_recv::latlon get_latlon(acclsen_t *);

    acclsen_recv::grsp get_grsp(acclsen_t *);

    acclsen_recv::foel get_foel(acclsen_t *);
}
#endif //ACCLSEN_SENSOR_H
